package com.yazi.mxz.behavior.entity.repository;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.GeoSpatialIndexType;
import org.springframework.data.mongodb.core.index.GeoSpatialIndexed;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.index.TextIndexed;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;


@Document
public class StoreGoods implements java.io.Serializable {

	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@Indexed
	private Long storeGoodsId;
	@DBRef
	private Store store;
	private String name;
	private String title;
	@TextIndexed
	private String keywords;
	private String unit;
	private Float price;
	private Float stock;
	private Integer stockEnd;
	private String sellUnit;
	private Float originalPrice;
	private String pic;
	private Integer dealAll;
	private Integer dealWeek;
	private Integer dealMonth;
	private Long sort;
	private Long updateTime;
	private Long addTime;
	private String subTitle;
	
	private Long classifyId0; // 自定义分类
	private Long classifyId1; // 子一级类
	private Integer promType; // 促销类型
	@GeoSpatialIndexed(type = GeoSpatialIndexType.GEO_2DSPHERE)
	private double[] location;// 位置(即店铺位置)

	private Long catId0; // 系统分类
	private Long catId1; // 子一级类
	private Long catId2; // 子二级类
	
	public Long getStoreGoodsId() {
		return storeGoodsId;
	}
	public void setStoreGoodsId(Long storeGoodsId) {
		this.storeGoodsId = storeGoodsId;
	}
	public Store getStore() {
		return store;
	}
	public void setStore(Store store) {
		this.store = store;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getKeywords() {
		return keywords;
	}
	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}
	public String getUnit() {
		return unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
	public Float getPrice() {
		return price;
	}
	public void setPrice(Float price) {
		this.price = price;
	}
	public Float getStock() {
		return stock;
	}
	public void setStock(Float stock) {
		this.stock = stock;
	}
	public Integer getStockEnd() {
		return stockEnd;
	}
	public void setStockEnd(Integer stockEnd) {
		this.stockEnd = stockEnd;
	}
	public String getSellUnit() {
		return sellUnit;
	}
	public void setSellUnit(String sellUnit) {
		this.sellUnit = sellUnit;
	}
	public Float getOriginalPrice() {
		return originalPrice;
	}
	public void setOriginalPrice(Float originalPrice) {
		this.originalPrice = originalPrice;
	}
	public String getPic() {
		return pic;
	}
	public void setPic(String pic) {
		this.pic = pic;
	}
	public Integer getDealAll() {
		return dealAll;
	}
	public void setDealAll(Integer dealAll) {
		this.dealAll = dealAll;
	}
	public Integer getDealWeek() {
		return dealWeek;
	}
	public void setDealWeek(Integer dealWeek) {
		this.dealWeek = dealWeek;
	}
	public Integer getDealMonth() {
		return dealMonth;
	}
	public void setDealMonth(Integer dealMonth) {
		this.dealMonth = dealMonth;
	}
	public Long getSort() {
		return sort;
	}
	public void setSort(Long sort) {
		this.sort = sort;
	}
	public Long getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Long updateTime) {
		this.updateTime = updateTime;
	}
	public Long getAddTime() {
		return addTime;
	}
	public void setAddTime(Long addTime) {
		this.addTime = addTime;
	}
	public String getSubTitle() {
		return subTitle;
	}
	public void setSubTitle(String subTitle) {
		this.subTitle = subTitle;
	}
	public Integer getPromType() {
		return promType;
	}
	public void setPromType(Integer promType) {
		this.promType = promType;
	}
	public double[] getLocation() {
		return location;
	}
	public void setLocation(double[] location) {
		this.location = location;
	}
	public Long getClassifyId0() {
		return classifyId0;
	}
	public void setClassifyId0(Long classifyId0) {
		this.classifyId0 = classifyId0;
	}
	public Long getClassifyId1() {
		return classifyId1;
	}
	public void setClassifyId1(Long classifyId1) {
		this.classifyId1 = classifyId1;
	}
	public Long getCatId0() {
		return catId0;
	}
	public void setCatId0(Long catId0) {
		this.catId0 = catId0;
	}
	public Long getCatId1() {
		return catId1;
	}
	public void setCatId1(Long catId1) {
		this.catId1 = catId1;
	}
	public Long getCatId2() {
		return catId2;
	}
	public void setCatId2(Long catId2) {
		this.catId2 = catId2;
	}
	
}
